<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>合并两个有序数组(简化版)</title>
</head>
<body>
<script>
    function sortNumber(a,b)
    {
        return a - b
    }
    let arr = [[1, 3, 5, [23, 25, 24]], [2, 4, 6], [7, 9, 10], [8, 11, 22]];//1234567910
    let newArr = arr.flat(Infinity).sort(sortNumber);
    console.log(newArr);
</script>
</body>
</html>